package com.our.sys.project1.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import org.springside.modules.orm.grid.ViewField;

import com.our.sys.orm.hibernate.AuditableEntity;

/**
 * 货位
 * @author acer
 *
 */
@Entity
@Table(name = "B_Stack")
public class Stack extends AuditableEntity implements Serializable {

    private static final long serialVersionUID = -1462804415902529088L;
    @ViewField(header = "货位代码", width = 200, align = "left")
    private String code;
    @ViewField
    private String smId;
    @ViewField(header = "物资类别", width = 200, align = "left")
    private String smName;
    @ViewField(header = "货位说明", width = 200, align = "left")
    private String note;

    @Id
    @GeneratedValue(strategy = GenerationType.TABLE, generator = "Id_Generator")
    @TableGenerator(name = "Id_Generator", table = "ID_GENERATOR", pkColumnName = "GEN_NAME", valueColumnName = "GEN_VAL", pkColumnValue = "B_Stack")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getSmId() {
        return smId;
    }

    public void setSmId(String smId) {
        this.smId = smId;
    }

    public String getSmName() {
        return smName;
    }

    public void setSmName(String smName) {
        this.smName = smName;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

}
